package com.mtw.bbs.userAdmin.feign;

import com.mtw.bbs.common.core.vo.Result;
import com.mtw.bbs.userAdmin.pojo.dto.UserDto;
import com.mtw.bbs.userAdmin.pojo.form.UserRegisterForm;
import com.mtw.bbs.userAdmin.pojo.vo.UserInfoVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Feign失败配置
 *
 */
@Component("userClient")
public class UserClientFallback implements UserClient {


    @Override
    public Result<UserInfoVo> getUserVoByUsername(String username) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<UserDto> getUserInfoByUsername(String username) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<UserDto> getUserInfoById(String userId) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<List<UserDto>> getUserInfoByIds(String[] userIds) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<UserDto> loadUserByPassword(String username, String password) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<UserDto> loadUserByUserName(String username) {
        return  Result.fail("获取用户失败");
    }

    @Override
    public Result<UserDto> loadUserByMobile(String mobile) {
        return  Result.fail("获取用户失败");
    }

}
